<h2>Laatst bewerkte relaties</h2>

<table cellpadding="2" border="1" bordercolor="silver" cellspacing="0" class="edit-table">
	<tr>
		<th>Klantnummer</th>
		<th>Achternaam</th>
		<th>Adres</th>
		<th>Plaats</th>
		<th>Email</th>
		<th>Telefoon</th>
		<th>Acties</th>
	</tr>
	<? foreach($this->relations as $relation) : ?>
	<tr>
		<td><?= $relation->relation_debtornumber ?>&nbsp;</td>
		<td><?= $relation->relation_lastname ?>, <?=trim($relation->relation_initials . ' ' . $relation->relation_junction) ?>&nbsp;</td>
		<td><?= $relation->relation_street . ' '. trim($relation->relation_housenumber. ' ' . $relation->relation_housenumber_addition) ?>&nbsp;</td>
		<td><?= $relation->relation_city ?>&nbsp;</td>
		<td><?= $relation->relation_emailaddress ?>&nbsp;</td>
		<td><?= $relation->relation_phonenumber ?>&nbsp;</td>
		<td><a href="<?=APPLICATION_STARTURL?>/relation/edit/relation_id/<?=$relation->relation_id?>">bewerk</a>&nbsp;</td>
	</tr>
	<? endforeach;?>
</table>

